#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
//	cin >> n;
	while (cin >> n) {
		int temp = 1;
		for (int i = 1; i < n; i++) {
			temp = (temp + 1) * 2;
		}
		cout << temp << endl;
	}
	return 0;
}
